package io.renren.modules.device.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备表
 * 
 * @author lwm
 * @email 
 * @date 2019-01-10 11:49:19
 */
@TableName("tb_device")
public class DeviceEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 设备名称
	 */
	private String deviceName;
	/**
	 * 设备id
	 */
	private String deviceId;
	/**
	 * IMEI
	 */
	private String imei;
	/**
	 * 大楼编号
	 */
	private String buildingCode;
	/**
	 * 楼层
	 */
	private Integer buildingFloor;
	/**
	 * 号
	 */
	private String buildingRoom;
	/**
	 * 状态  0：运行   1：解绑
	 */
	private Integer status;

	public String getBuildingName() {
		return buildingName;
	}

	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}

	/**
	 * 大楼名称
	 */
	@TableField(exist = false)
	private String buildingName;
	/**
	 * 创建时间
	 */
	//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	/**
	 * 设置：
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：设备名称
	 */
	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}
	/**
	 * 获取：设备名称
	 */
	public String getDeviceName() {
		return deviceName;
	}
	/**
	 * 设置：IMEI
	 */
	public void setImei(String imei) {
		this.imei = imei;
	}
	/**
	 * 获取：IMEI
	 */
	public String getImei() {
		return imei;
	}
	/**
	 * 设置：大楼编号
	 */
	public void setBuildingCode(String buildingCode) {
		this.buildingCode = buildingCode;
	}
	/**
	 * 获取：大楼编号
	 */
	public String getBuildingCode() {
		return buildingCode;
	}
	/**
	 * 设置：楼层
	 */
	public void setBuildingFloor(Integer buildingFloor) {
		this.buildingFloor = buildingFloor;
	}
	/**
	 * 获取：楼层
	 */
	public Integer getBuildingFloor() {
		return buildingFloor;
	}
	/**
	 * 设置：号
	 */
	public void setBuildingRoom(String buildingRoom) {
		this.buildingRoom = buildingRoom;
	}
	/**
	 * 获取：号
	 */
	public String getBuildingRoom() {
		return buildingRoom;
	}
	/**
	 * 设置：状态  0：运行   1：解绑
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}
	/**
	 * 获取：状态  0：运行   1：解绑
	 */
	public Integer getStatus() {
		return status;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	public String getDeviceId() {
		return deviceId;
	}
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	
}
